{template Public:Page:header}

<div class="container">
  <div class="row">
  
    {template Member:Index:sidebar}
    
    <div class="col-lg-10 well-col-pl-30">
      <div class="row">
            <div class="well">

              <h3>服务商中心</h3>
                <div class="row">
                     <div class="col-lg-8">
						<div class="row">
                        <div class="col-lg-12 col-sm-6 col-xs-12">
                                    <div class="databox databox-xlg databox-halved radius-bordered databox-shadowed databox-vertical">
                                        <div class="databox-top bg-white padding-10">
                                            <div class="col-lg-4 col-sm-4 col-xs-4">
                                           	 {echo GetAvatarSimple($member['uid'],48,'image-circular bordered-3 bordered-palegreen')}
                                            </div>
                                            <div class="col-lg-8 col-sm-8 col-xs-8 text-align-left padding-10">
                                                <span class="databox-header carbon no-margin">{echo $member['username']}</span>
                                                <span class="databox-text lightcarbon no-margin"> <i class="fa fa-map-marker"></i>{echo $member['provname']} {echo $member['cityname']} {echo $member['distname']} </span>
                                            </div>
                                        </div>
                                        <div class="databox-bottom bg-white no-padding">
                                            <div class="databox-row row-12">
                                                <div class="databox-row row-6 no-padding">
                                                 
                                                    <div class="databox-cell cell-3 no-padding text-align-center bordered-right bordered-platinum">
                                                        <span class="databox-text sonic-silver  no-margin" style="font-size:12px;">待审核</span>
                                                        <span class="databox-number lightcarbon no-margin"><a href="/seller/task/index?process=0&search=1">{echo $notpayorder}</a></span>
                                                    </div>
                                                    <div class="databox-cell cell-3 no-padding text-align-center bordered-right bordered-platinum">
                                                        <span class="databox-text sonic-silver no-margin" style="font-size:12px;">已中标</span>
                                                        <span class="databox-number lightcarbon no-margin"><a href="/seller/task/index?process=1&search=1">{echo $orderok}</a></span>
                                                    </div>
                                                     <div class="databox-cell cell-3 no-padding text-align-center bordered-right bordered-platinum">
                                                        <span class="databox-text sonic-silver no-margin" style="font-size:12px;">待交接</span>
                                                        <span class="databox-number lightcarbon no-margin"><a href="/seller/task/index?process=3&search=1">{echo $okorderup}</a></span>
                                                    </div>
                                                    
                                                    <div class="databox-cell cell-3 no-padding text-align-center">
                                                        <span class="databox-text sonic-silver no-margin" style="font-size:12px;">待评价</span>
                                                        <span class="databox-number lightcarbon no-margin"><a href="/seller/task/index?process=4&search=1">{echo $evaluatetask}</a></span>
                                                    </div>
                                                </div>
                                  
                                                <div class="databox-row row-6 padding-10">
                                                                <a class="btn btn-palegreen btn-sm pull-right" href="/seller/task">更多订单</a>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                         </div>
                                
                    </div>
               		 <div class="col-lg-4">
             
                     		<div class="databox databox-lg databox-halved radius-bordered databox-shadowed databox-vertical" style="height:200px;">
                                    <div class="databox-top btn-primary no-padding">
                                        <div style="padding-top:18px;font-size:20px;">
                                            <span style="color:#FFF">余额 ￥{echo number_format($member['money']/100,2)}</span>
                                        </div>
                                    </div>
                                    <div class="databox-bottom bg-white no-padding">
                                        <div class="databox-row text-align-center">
                                              <div class="databox-cell cell-6 no-padding text-align-center bordered-right bordered-platinum">
                                                        <span class="databox-text sonic-silver no-margin" style="padding-top:10px;font-size:12px;">收入</span>
                                                        <span class="databox-number lightcarbon no-margin">￥{echo number_format($member['moneyin']/100,2)}</span>
                                            </div>
                                            <div class="databox-cell cell-6 no-padding text-align-center">
                                                    <span class="databox-text sonic-silver no-margin" style="padding-top:10px;font-size:12px;">支出</span>
                                                    <span class="databox-number lightcarbon no-margin">￥{echo number_format($member['moneyout']/100,2)}</span>
                                             </div>
                                        </div>
                                        
                                       <div class="databox-row text-align-center">
                                              <div class="databox-cell cell-6 no-padding text-align-center bordered-right bordered-platinum">
                                                      
                                                        <span class="databox-number lightcarbon no-margin" style="padding-top:20px;"><a class="btn btn-primary" href="/member/payin">充值</a></span>
                                            </div>
                                            <div class="databox-cell cell-6 no-padding text-align-center">
                                                   
                                                    <span class="databox-number lightcarbon no-margin" style="padding-top:20px;"><a class="btn btn-primary" href="/member/payout">提现</a></span>
                                             </div>
                                        </div>
                                        
                                        
                                        
                                    </div>
                            
                                    
                                </div>
                	</div>
              </div>
              

       
            <div class="row">
            		 <div class="col-lg-12">
                     <h4>待交接订单</h4>
                     <table class="table table-striped table-bordered table-hover">
                <thead>
                    <tr>
                        <th>
                        	 ID
                        </th>
                        <th>
                        	 买家
                        </th>
                        <th>
                        	 任务
                        </th>
                        <th>
                            发布时间
                        </th>
                        <th>
                           中标金额
                        </th>
                         <th>
                         状态
                        </th>
                        <th>
                        操作
                        </th>
                    </tr>
                </thead>
                <tbody>
                
                	{if !empty($list)}
                        {foreach $list $value}
                            <tr>
                           		<td>
                                    {echo $value['oid']}
                                </td>
                           
                                <td>
                                    {echo $value['buyer_username']}
                                </td>
                                
                                <td>
                                    <a href="/task/{echo $value['id']}" target="_blank">{echo $value['subject']}</a>
                                </td>
                        
                                <td>
                                   {echo FormatDate("Y/m/d",$value['dateline'])}
                                </td>
                                <td>
                                    <span class="color_f60">￥{echo $value['money']/100}</span>
                                </td>
                                <td>
                                   {if $value['process']==0}未审核{elseif $value['process']==1}中标 {if $value['cid']==0}交接中{elseif $value['cid']>0 && $value['seller_is_evaluate']==0}评价中{/if}{else}失败{/if}
                                </td>
                                <td>
                                {if $value['process']!=1}<a href="/task/show/edit/id/{echo $value['id']}/oid/{echo $value['oid']}" target="_blank" class="btn btn-default btn-xs">编辑</a>{else}<a href="/task/{echo $value['id']}/{echo $value['oid']}" target="_blank" class="btn btn-default btn-xs">查看</a>{/if}
                                </td>
                            </tr>
                        {/foreach}
                    {/if}
                    
                </tbody>
            </table>
              

            </div>
            </div>
         
			<br />
         
                 <div class="panel panel-default">
         
              <div class="panel-heading"> <i class="glyphicon glyphicon-phone"></i> <strong>手机绑定</strong></div>
              <div class="panel-body">
                 <div class="col-lg-10">
                <p>直接使用“手机号码”登录本站，并收到中标、支付等重要提醒。</p>
                <p>{if $ismobile}{echo str_replace(substr($member['mobile'],3,6),'******',$member['mobile'])}{/if}</p>
                </div>
                  <div class="col-lg-2">
                {if !$ismobile}<a class="btn btn-primary" href="/member/mobile"><i></i>马上绑定</a>{/if}
              </div>
                
              </div>
         
              
         
            </div>
            
            
            <div class="panel panel-default">
         
              <div class="panel-heading"> <i class="glyphicon glyphicon-envelope"></i> <strong>邮箱绑定</strong></div>
              <div class="panel-body">
                 <div class="col-lg-10">
                     <p>直接使用“邮箱”登录本站，并收到中标、支付等重要提醒。</p>
                        <p>{if $isemail}已绑定邮箱：{else}未绑定邮箱：{/if}***{echo substr($member['email'],3)}</p>
                   </div>
                   <div class="col-lg-2">
                       {if !$isemail}<a class="btn btn-primary" href="/member/email"><i></i>马上绑定</a>{else}<a class="btn btn-primary" href="/member/email"><i></i>修改邮箱</a>{/if}
                   </div>
              </div>
        
         
            </div>
    
            </div>
    </div>
  </div>
</div>
</div>

{template Public:Page:footer}